package com.gy.smartmanagement.login.api;

import com.gy.smartmanagement.base.api.bean.ResultBean;
import com.gy.smartmanagement.login.mvp.LoginBean;
import com.gy.smartmanagement.login.mvp.WeatherBean;
import com.gy.smartmanagement.utils.HttpUtil;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;


public interface LoginApiService {
  String CITY = "expect";
  String ACCOUNT = "account";
  String PASSWORD = "password";
  String CAPTCHA = "captcha";

  @POST(HttpUtil.LOGIN)
  Observable<ResultBean<LoginBean>> getLoginInfo(@Body RequestBody loginBody);

  @GET(" http://www.mxnzp.com/api/lottery/ssq/aim_lottery")
  Observable<ResultBean<WeatherBean>> getWeather(@Query(CITY) String city);
}